package com.lcc.book.demos.web.Model;

import lombok.Data;

import java.util.List;
@Data
public class PageResult<T> {
    /**
     * 总的图书记录数
     */
    private Integer total;
    /**
     * 该页的记录
     */
    private List<T> records;
    /**
     *可以得到pageSize、offset、currentPage
     */
    private PageRequest pageReuest;

    public PageResult(Integer total, List<T> records, PageRequest pageReuest) {
        this.total = total;
        this.records = records;
        this.pageReuest = pageReuest;
    }
}
